<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS选择器-伪类选择器-6</title>
    <style>
        p{
            border: 1px solid green;
        }
        p:hover{
            color: red;
        }
    </style>
</head>
<body>

<p>这是一个P元素</p>
</body>
</html>